package cn.itcast.service.cargo;

import cn.itcast.domain.base.State;
import cn.itcast.domain.base.StateExample;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface StateService {
    PageInfo<State> findAll(StateExample stateExample,Integer pageNum, Integer pageSize);

    //查找全部字典
    List<State> findAllState(StateExample stateExample);

    //保存字典
    void save(State state);

    //更新字典
    void update(State state);

    //根据id查找字典
    State findById(String id);

    // 删除字典
    void delete(String id);
}
